package com.lmy.mallback.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author 程序员小洋
 * @version 2022.3
 * @date 2023/1/11 11:39
 * @title 商品小类表
 */
@SuppressWarnings({"all"})
@TableName(value ="t_smalltype")
@Data
public class SmallType implements Serializable {
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 商品小类
     */
    private String name;

    /**
     * 备注
     */
    private String remark;

    /**
     * 商品大类编号
     */
    private Integer bigTypeId;

    /**
     * 商品所属大类
     */
    @TableField(select = false,updateStrategy = FieldStrategy.NEVER,insertStrategy = FieldStrategy.NEVER)
    private BigType bigType;

    @TableField(select = false)
    private List<Product> productList;
}